package com.dana1.nos.old.generator;

import java.util.UUID;

import com.dana1.nos.old.Generator;
import com.dana1.nos.old.ServiceObject;

public class UUIDTimestampGenerator implements Generator
{
	private static final TimeBasedUUIDGenerator tbu = new TimeBasedUUIDGenerator(); 
	
	@Override
	public Object nextValue(Class<? extends ServiceObject> objectClass)
	{
		return ((UUID)tbu.nextValue(null)).timestamp();
	}

}
